package com.station.server.entity;

/**
 * User: JinJavaMojo
 * Date: 25.09.13
 */
public enum Fuel {

    A92("A92"),
    A95("A95"),
    VIN_DIESEL("DIESEL");

    public String type;

    private Fuel(String type) {
        this.type = type;
    }
    public String getType(){
        return type;
    }

    public static Fuel getInstance(String id) {
        Fuel result = null;
        for (Fuel item : Fuel.values()) {
            if (item.getType().equals(id)) {
                result = item;
                break;
            }
        }
        return result;
    }
}
